
Page({
    data: {
         src:''

        
    },
    onLoad:function(opt){
      console.log(opt.type)
      console.log(opt.openid)
      this.getDeviceDetail3(opt.type)
    },
    onShow:function(){
       
    },
     //更多检测项
     getDeviceDetail3:function (id) {
        var userInfo= wx.getStorageSync('userInfo');
         var _self=this;
         wx.request({
            url:getApp().globalData.baseUrl+'/wx/yxj/equipment/auth/info?id='+id+"&openid="+userInfo.openid,
            method:"GET",
            header: {
                'openid':userInfo.openid, //公用请求头
                'content-type': 'application/json'
            },
            success: function(res) {
             // _self.getLeiSiDetail(res.data.obj.type,res.data.obj.province);
             console.log(res.data.obj)
             // res.data.obj.url=[res.data.obj.url]
             _self.setData({
                obj:res.data.obj
             })
            
           
         }
       })
    },
    onMyEvent:function(e){
       
    }
});